<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="generator" content="wordpress <?PHP bloginfo('version');?>" />

<?PHP
$title= wp_title('',false,right);
if( $title == '') $title= get_bloginfo('name') . ' | '. get_bloginfo('description');
$title= trim($title);
?>

<base href="<?php bloginfo('template_url');?>/"></base>

<title><?php echo $title; ?></title>
<?PHP
$description = strip_tags(get_bloginfo('description'));
$ogImage = themeGetOption("ogimage_url");
if(!is_home()) { 
	global $post;
	the_post();
	$text = get_the_excerpt();
	if( $text == '')	
		$text = get_bloginfo('description');
	$description = strip_tags($text); 
	if(has_post_thumbnail())
	{	
		$src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), full );
		$ogImage = $src[0];
	} 
	rewind_posts(); 
}
?>
<meta property="og:description" content="<?PHP echo $description; ?>" />
<meta property="og:url" content="<?php 
	echo '//'.$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
?>"/> 
<meta property="og:image" content="<?php echo $ogImage; ?>"/>
<meta property="og:type" content="article"/>
<meta property="og:title" content="<?php echo $title; ?>" />

<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="shortcut icon" href="<?php bloginfo('template_url');?>/images/buet87foundation.png" />

<?PHP wp_deregister_script('jquery'); ?>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" id="rokeya_layout_SRC_JS" src="//bangla-keyboard-layout.googlecode.com/svn/trunk/rokeya_layout-4.4.73.js"></script>

<script type="text/javascript" src="<?php bloginfo('template_url');?>/customJS/jquery.customFunctions.js"></script>

<?php
	wp_head();
?>
</head>

<body>

<div id="wrapper">
<div id="header">

<div id="nav">
<div id='timeNowBuet' class='timeNowBuet'></div>
<?PHP 
if( has_post_thumbnail() && is_single() )
	the_post_thumbnail(); //Header image set by user
else 
{ ?>
<img src="<?PHP echo themeGetOption('bannerPicFileName'); ?>" alt="<?PHP echo themeGetOption('bannerPicAltTagText');?>" title="<?PHP echo themeGetOption('bannerPicAltTagText');?>" style="height: 150px;width:100%"/>
<?PHP 
} 
?>

<ul>
  <li><a class="home" href="<?PHP bloginfo("url");?>">Home</a></li>
	<?PHP wp_list_pages("title_li=&sort_column='modified'&sort_order='exclude'"); ?>
	<?PHP if( is_user_logged_in() == false && function_exists('execute_ALSDKFLSDMC347529DFIDK823'))
	{
		echo '<li style="float:right; margin: 5px;">';
		execute_ALSDKFLSDMC347529DFIDK823('google');
		echo '</li>';
		
		echo '<li style="float:right; margin: 5px;">';
		execute_ALSDKFLSDMC347529DFIDK823('facebook');
		echo '</li>';
	}
	else { ?>
	<script type='text/javascript'> 
	// queue function to run on document.ready
	jQuery(function() {
		var $logoutURL= $('#wp-admin-bar-logout a');
		$logoutURL.attr('href',$logoutURL.attr('href')+'&redirect_to='+window.location.href);
		$('#wp-admin-bar-site-name a[aria-haspopup]').attr('href','<?PHP echo get_bloginfo('siteurl'); ?>');
	});
	</script>
	<?PHP } ?>
</ul>
</div>
</div> <!--  header div ends here -->
<?PHP //die; ?>